

import { Navigate } from "react-router-dom";

import Index from "../views/Index/Index";
import Login from "../views/Login/Login";
import NotFound from "../views/NotFound/NotFound";

import Collage from "../views/Index/Marketing/Collage/Collage";
import Addcollage from "../views/Index/Marketing/Collage/Addcollage";

import Shipping from "../views/Index/Marketing/Shipping/Shipping";
import Addshipping from "../views/Index/Marketing/Shipping/Addshipping";

import Seckill from "../views/Index/Marketing/Seckill/Seckill";
import Addseckill from "../views/Index/Marketing/Seckill/Addseckill";

import Scenario from "../views/Index/Marketing/Scenario/Scenario";
import Addscenario from "../views/Index/Marketing/Scenario/Addscenario";

import Package from "../views/Index/Marketing/Package/Package";
import Addpackage from "../views/Index/Marketing/Package/Addpackage";

import Gift from "../views/Index/Marketing/Gift/Gift";
import Addgift from "../views/Index/Marketing/Gift/Addgift";

import Discount from "../views/Index/Marketing/Discount/Discount";
import Adddiscount from "../views/Index/Marketing/Discount/Adddiscount";

import Decrement from "../views/Index/Marketing/Decrement/Decrement";
import AddDecrement from "../views/Index/Marketing/Decrement/AddDecrement";

import Coupon from "../views/Index/Marketing/Coupon/Coupon";
import Addcoupon from "../views/Index/Marketing/Coupon/Addcoupon/Addcoupon";

import Home from "../views/Index/Home/Home";
import Good from "../views/Index/Good/Good";
import GoodAdd from "../views/Index/GoodAdd/GoodAdd";
import GoodEdit from "../views/Index/GoodEdit/GoodEdit";
import Zichan from "../views/Index/Zichan/Zichan";


import Column from "../views/Index/Column/Column";
import Cate from "../views/Index/Cate/Cate";
import Questions from "../views/Index/Questions/Questions";
import QuestionsAdd from "../views/Index/QuestionsAdd/QuestionsAdd";
import QuestionsEdit from "../views/Index/QuestionsEdit/QuestionsEdit";
import Tests from "../views/Index/Tests/Tests";
import TestsAdd from "../views/Index/TestsAdd/TestsAdd";
import TestsEdit from "../views/Index/TestsEdit/TestsEdit";

import Banner from "../views/Index/Banner/Banner";
import Staff from "../views/Index/Staff/Staff";
import Role from "../views/Index/Role/Role";
import Logss from "../views/Index/Logss/Logss";
import Information from "../views/Index/Information/Information";
import BannerAdd from "../views/Index/BannerAdd/BannerAdd";
import StaffAdd from "../views/Index/StaffAdd/StaffAdd";
import RoleAdd from "../views/Index/RoleAdd/RoleAdd";

import Gaikuo from "../views/Index/Gaikuo/Gaikuo";
import Fenxi from "../views/Index/Fenxi/Fenxi";
import Xuexi from "../views/Index/Xuexi/Xuexi";
import Zhibo from "../views/Index/Zhibo/Zhibo";

import Audio from "../views/Index/Audio/Audio";
import Video from "../views/Index/Video/Video";
import ImageText from "../views/Index/ImageText/ImageText";
import LiveStreaming from "../views/Index/LiveStreaming/LiveStreaming";
import Addzhibo from "../views/Index/Addzhibo/Addzhibo";
import Datazhibo from "../views/Index/Datazhibo/Datazhibo";
import Editzhibo from "../views/Index/Editzhibo/Editzhibo";
import Datatuwen from "../views/Index/Datatuwen/Datatuwen";
import Datavideo from "../views/Index/Datavideo/Datavideo";
import Dataaudio from "../views/Index/Dataaudio/Dataaudio";

import Search from "../views/Index/Manage/Search";
import Detail from "../views/Index/Manage/Detail/Detail";
import Label from "../views/Index/Manage/Label/Label";
import AddLabel from "../views/Index/Manage/Label/AddLabel/AddLabel";
import Addvip from "../views/Index/Manage/Addvip/Addvip";
import Gratisvip from "../views/Index/Manage/Gratisvip/Gratisvip";
import Addgratis from "../views/Index/Manage/Gratisvip/Addgratis/Addgratis";
import Payvip from "../views/Index/Manage/Payvip/Payvip";
import Addpay from "../views/Index/Manage/Payvip/Addpay/Addpay";


export default [
    {
        path: '/index',
        element: <Index />,
        children: [
            {
                path: '/index/home',
                element: <Home />,
            },
            {
                path: '/index/good',
                element: <Good />,
            },
            {
                path: '/index/goodadd',
                element: <GoodAdd />,
            },
            {
                path: '/index/goodedit',
                element: <GoodEdit />,
            },
            {
                path: '/index/zichan',
                element: <Zichan />,
            },
            {

                path: '/index/gaikuo',
                element: <Gaikuo />,
            },

            {

                path: '/index/column',
                element: <Column />,
            },
            {
                path: '/index/cate',
                element: <Cate />,
            },
            {
                path: '/index/questions',
                element: <Questions />,
            },
            {
                path:'/index/questions_add',
                element:<QuestionsAdd />,
            },
            {
                path:'/index/questions_edit',
                element:<QuestionsEdit />,
            },
            {
                path:'/index/tests',
                element:<Tests />,
            },
            {
                path:'/index/tests_add',
                element:<TestsAdd />,
            },
            {
                path:'/index/tests_edit',
                element:<TestsEdit />,
            },
            {
                path:'/index/banner',
                element:<Banner />,
            },
            {
                path:'/index/banneradd/:id',
                element:<BannerAdd />,
            },
            {
                path: '/index/staff',
                element: <Staff />,
            },
            {
                path: '/index/staffadd',
                element: <StaffAdd />,
            },
            {
                path: '/index/role',
                element: <Role />,
            },
            {
                path: '/index/roleadd',
                element: <RoleAdd />,
            },
            {
                path: '/index/logss',
                element: <Logss />,
            },
            {
                path: '/index/information',
                element: <Information />,
            },

            {
                path: '/index/audio',
                element: <Audio />,
            },
            {
                path: '/index/video',
                element: <Video />,
            },
            {
                path: '/index/imagetext',
                element: <ImageText />,
            },
            {
                path: '/index/livestreaming',
                element: <LiveStreaming />,
            },
            {
                path: '/index/addzhibo',
                element: <Addzhibo />,
                path: '/index/coupon',
                element: <Coupon />,
            },
            {
                path: '/index/addcoupon',
                element: <Addcoupon />,
            },
            {
                path: '/index/decrement',
                element: <Decrement />,
            },
            {
                path: '/index/adddecrement',
                element: <AddDecrement />,
            },
            {
                path: '/index/discount',
                element: <Discount />,
            },
            {
                path: '/index/adddiscount',
                element: <Adddiscount />,
            },
            {
                path: '/index/gift',
                element: <Gift />,

            },
            {
                path: '/index/addgift',
                element: <Addgift />,

            },
            {
                path: '/index/package',
                element: <Package />,
            },
            {
                path: '/index/addpackage',
                element: <Addpackage />,
            },
            {
                path: '/index/search',
                element: <Search />,
            },
            {
                path: '/index/detail/:id',
                element: <Detail />,
            },
            {
                path: '/index/Label',
                element: <Label />,
            },
            {
                path: '/index/addlabel',
                element: <AddLabel />,
            },

            {
                path: '/index/fenxi',
                element: <Fenxi />,
            },
            {
                path: '/index/xuexi',
                element: <Xuexi />,
            },
            {
                path: '/index/zhibo',
                element: <Zhibo />,
            },


            {
                path: '/index/scenario',
                element: <Scenario />,
            },
            {
                path: '/index/addscenario',
                element: <Addscenario />,
            },
            {
                path: '/index/seckill',
                element: <Seckill />,
            },
            {
                path: '/index/shipping',
                element: <Shipping />,
            },
            {
                path: '/index/collage',
                element: <Collage />,
            },
            {
                path: '/index/addcollage',
                element: <Addcollage />,
            },
            {
                path: '/index',
                element: <Navigate to='/index/home' />,
            },
            {
                path: '*',
                element: <NotFound />,
            },
        ]
    },
    {
        path: '/login',
        element: <Login />,
    },
    {
        path: '/',
        element: <Navigate to='/index' />,
    },
    {
        path: '*',
        element: <NotFound />,
    },
]